package cn.imvc.app.models;

import org.springframework.data.domain.Page;

import cn.imvc.app.entities.Area;
import cn.imvc.app.entities.Express;
import cn.imvc.app.entities.ExpressFee;
import cn.imvc.data.domain.ViewRequest;

public interface ExpressFeeModel {

	Page<ExpressFee> find(ViewRequest viewRequest);

	ExpressFee save(int expressId, int areaId, ExpressFee expressFee);

	ExpressFee get(int id);

	ExpressFee update(int id, int expressId, int areaId, ExpressFee expressFee);

	void delete(int id);

	void deleteBatch(int[] ids);

	ExpressFee findByExpressAndAreaId(Express express, int areaId);
}
